from flask import Blueprint, request, render_template, url_for
import flask
from mostone import mostone

mostone_facility = Blueprint("mostone_facility", __name__)

@mostone_facility.route("/mostone/facility")
def facility():
    return render_template("mwfacility.html")

@mostone_facility.route("/mostone/facility/manifest/<version>")
@mostone_facility.route("/mostone/facility/manifest/<version>/<type>")
def facility_generate_manifest(version, type="miyo"):
    mos = mostone.Mostone()
    if type == "miyo":
        mos.generate_miyo_manifest(version)
    else:
        mos.generate_luka_manifest(version)


    return "success"

if __name__ == "__main__":


    pass